package com.koo.modules.activiti.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.koo.common.base.entity.CommonEntity;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 请假
 *
 * @author charlin
 * @email 136137465@qq.com
 * @date 2022-08-04 21:53:37
 */
@Data
@ApiModel("请假")
@TableName("workflow_leave")
public class WorkflowLeaveEntity extends CommonEntity {
    private static final long serialVersionUID = 1L;

    @ExcelIgnore
    @TableId
    private Long leaveId;

    @ColumnWidth(11)
    @ExcelProperty("请假类型")
    @ApiModelProperty(value = "请假类型")
    private Integer type;

    @ColumnWidth(11)
    @ExcelProperty("标题")
    @ApiModelProperty(value = "标题")
    private String title;

    @ColumnWidth(11)
    @ExcelProperty("原因")
    @ApiModelProperty(value = "原因")
    private String reason;

    @ColumnWidth(11)
    @ExcelProperty("开始时间")
    @ApiModelProperty(value = "开始时间")
    private Date leaveStartTime;

    @ColumnWidth(11)
    @ExcelProperty("结束时间")
    @ApiModelProperty(value = "结束时间")
    private Date leaveEndTime;

    @ColumnWidth(11)
    @ExcelProperty("附件")
    @ApiModelProperty(value = "附件")
    private String attachmentLink;

    @ColumnWidth(11)
    @ExcelProperty("流程实例ID")
    @ApiModelProperty(value = "流程实例ID")
    private String instanceId;


}
